﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using SupervisorControllers;

namespace SupervisorGUI
{
    /// <summary>
    /// Interaction logic for BroadcastWindow.xaml
    /// </summary>
    public partial class BroadcastWindow : Window
    {
        Cls_Controllers supervisorControllers;

        public BroadcastWindow()
        {
            InitializeComponent();
            supervisorControllers = new Cls_Controllers();
      }

        private void btnSend_Click(object sender, RoutedEventArgs e)
        {
            string broadcastMessage;
            string groupName;

            broadcastMessage = txtBesked.Text;
            groupName = txtGruppeNavn.Text;

            supervisorControllers.CreateMessage(broadcastMessage, groupName);
      }
    }
}
